#ifndef __DKGL_OBJMODEL_H__
#define __DKGL_OBJMODEL_H__

#include "dkglMesh.h"

namespace DKGL
{
	class ObjModel :
		public Mesh, public COBJModel
	{
	public:

		ObjModel(const String& name, const String& path );

		~ObjModel();

		void load(const String&);

		void renderImpl();

	protected:
		int displayListId;

		size_t vert_count;

		void genDisplayList();

	};

	class ObjModelCreator : public MeshCreator
	{
	public:
		// arg[0] is file path
		MeshPtr create(const String& name, const Arguments&);
	};
}

#endif